import {musicRequest} from './index';
export function getTopMovie(offset, limit = 10) {
    return musicRequest.get('/top/mv', {
        offset,
        limit
    })
}

/**
 * 获取电影播放url信息
 * @param {number} movieId 电影详情id
 */
export function getMovieUrlInfo(movieId) {
    return musicRequest.get('/mv/url', {
        id: movieId
    })
}

/**
 * 获取视频详情信息
 * @param {number} movieId 
 */
export function getMovieDetail(movieId) {
    return musicRequest.get('/mv/detail', {
        mvid: movieId
    })
}

/**
 * 获取相关视频
 * @param {number} movieId 
 */
export function getRelatedVideo(movieId) {
    return musicRequest.get('/related/allvideo', {
        id: movieId
    })
}